package com.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.edu.entity.Course;
import com.edu.entity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.entity.course.CourseFontVo;


import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author mxs
 * @since 2021-10-13
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 获取前四条教师信息
     * @return
     */
    List<Teacher> getHotTeacher();

    /**
     * 分页查询教师信息
     * @param teacherPage
     * @return
     */
    public HashMap<String, Object> getTeacherFontList(Page<Teacher> teacherPage);

    /**
     * 分页带条件查询
     * @param coursePage
     * @param courseFontVo
     * @return
     */
    HashMap<String, Object> getCoursePage(Page<Course> coursePage, CourseFontVo courseFontVo);
}
